package com.qiangesoft.multithread.controller;

import com.qiangesoft.multithread.entity.MallOrder;
import com.qiangesoft.multithread.service.IMallOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 订单信息 前端控制器
 * </p>
 *
 * @author qiangesoft
 * @since 2024-05-06
 */
@RestController
@RequestMapping("/order")
public class MallOrderController {

    @Autowired
    private IMallOrderService mallOrderService;

    @GetMapping("/{id}")
    public MallOrder getById(@PathVariable Long id) {
        return mallOrderService.getById1(id);
    }

}

